import axios from "../utils/http"
import store from '../store'

// 获取后端权限路由的方法
export function fetchPermission(){
    return axios.get('/api/permission?user='+store.state.UserToken)
}

// 登录获取token的请求
export function login(user){
    return axios.get("/api/login?user="+user)
}                                            